-- GENERATED SPELL FOR [Shandaral Spirit Wolf] --


function spell0_31123(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31123', 8000, 1)
end

function Sorts_31123(pUnit, Event)
local choix_sorts_31123 = math.random(0, 0)
if choix_sorts_31123 == 0 then
pUnit:RegisterEvent('spell0_31123', 1, 1)
end
end

function mob31123_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31123', math.random(1500, 3000), 1)
end

function mob31123_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31123_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31123_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31123, 1, 'mob31123_Action')
RegisterUnitEvent(31123, 2, 'mob31123_Leave')
RegisterUnitEvent(31123, 3, 'mob31123_Kill')
RegisterUnitEvent(31123, 4, 'mob31123_Die')
